import globalConfig from "@/utils/config.js";
import { filePost, request } from "@/utils/http.js";

const baseUrl = globalConfig.microUrl;
const apiUrl = globalConfig.baseUrl;

export default {
  // 获取所属行业
  getIndustry: (data) => {
    return request({
      url: `${baseUrl}/customer/licence/getIndustry`,
      method: "GET",
      data
    });
  },
  // 获取企业性质
  getTypeid: (data) => {
    return request({
      url: `${baseUrl}/customer/licence/getTypeid`,
      method: "GET",
      data
    });
  },
  // 企业认证提交
  addLicence: (data) => {
    return request({
      url: `${baseUrl}/customer/licence/create`,
      method: "POST",
      data
    });
  },
  addLicenceV2: (data) => {
    return request({
      url: `${baseUrl}/customer/licence/createV2`,
      method: "POST",
      data
    });
  },
  // 企业认证-详情
  getInFo: (data) => {
    return request({
      url: `${baseUrl}/customer/licence/getInfo`,
      method: "GET",
      data
    });
  },
  // 企业认证修改
  licenceEdit: (data) => {
    return request({
      url: `${baseUrl}/customer/licence/update`,
      method: "POST",
      data
    });
  },
  licenceEditV2: (data) => {
    return request({
      url: `${baseUrl}/customer/licence/updateV2`,
      method: "POST",
      data
    });
  },
  // 授权代表修改
  authorizedPersonApplyEdit: (data) => {
    return request({
      url: `${baseUrl}/customer/authorizedPersonApply/update`,
      method: "POST",
      data
    });
  },
  authorizedPersonApplyEditV2: (data) => {
    return request({
      url: `${baseUrl}/customer/authorizedPersonApply/updateV2`,
      method: "POST",
      data
    });
  },

  // 授权代表-检查详情
  authorizedPersonApply: (data) => {
    return request({
      url: `${baseUrl}/customer/authorizedPersonApply/getCheckInfo`,
      method: "GET",
      data
    });
  },
  // 授权代表新增
  authorizedPersonApplyAdd: (data) => {
    return request({
      url: `${baseUrl}/customer/authorizedPersonApply/create`,
      method: "POST",
      data
    });
  },
  authorizedPersonApplyAddV2: (data) => {
    return request({
      url: `${baseUrl}/customer/authorizedPersonApply/createV2`,
      method: "POST",
      data
    });
  },
  // 管理员
  memberInfo: (data) => {
    return request({
      url: `${baseUrl}/member/getInfo`,
      method: "GET",
      data
    });
  },
  // 获取客户信息
  getMemberInfo: (data) => {
    return request({
      url: `${baseUrl}/member/getCustomer`,
      method: "GET",
      data
    });
  },

  //   获取当前登录人企业认证信息状态
  getMemberCompanyInfo: (data) => {
    return request({
      url: `${baseUrl}/customer/licence/getApPlan`,
      method: "GET",
      data
    });
  },

  // 资质认证
  qualDetail: (data) => {
    return request({
      url: `${baseUrl}/member/aptitude/get`,
      method: "GET",
      data
    });
  },
  // 提交资质认证
  submitQualList: (data) => {
    return request({
      url: `${baseUrl}/member/aptitude/create`,
      method: "POST",
      data
    });
  },
  // 修改资质认证
  editQualList: (data) => {
    return request({
      url: `${baseUrl}/member/aptitude/update`,
      method: "POST",
      data
    });
  },

  // 修改提货人
  updateSaleDriverInfo: (data) => {
    return request({
      url: `${baseUrl}/order/updateSaleDriverInfo`,
      method: "POST",
      data
    });
  },

  // 地址列表
  getCustomerAddress: (data) => {
    return request({
      url: `${baseUrl}/customer/customerAddress/listAll`,
      method: "GET",
      data
    });
  },
  // 保存地址
  addCustomerAddress: (data) => {
    return request({
      url: `${baseUrl}/customer/customerAddress/save`,
      method: "POST",
      data
    });
  },

  // 经办人新增
  customerContactSave: (data) => {
    return request({
      url: `${baseUrl}/customer/customerContact/save`,
      method: "POST",
      data
    });
  },
  // 经办人详情
  customerContactGet: (data) => {
    return request({
      url: `${baseUrl}/customer/customerContact/get`,
      method: "GET",
      data
    });
  },
  // // 配送单列表
  // deliveryList: data => {
  //   return request({ url: baseUrl + "/member/deliver/listDispatch", method: "GET", data: data });
  // },
  // 配送单列表
  deliveryList: (data) => {
    return request({
      url: `${baseUrl}/logistics/deliver/page`,
      method: "GET",
      data
    });
  },
  // 订单管理--订单配送信息
  getSaleDeliverInfo: (data) => {
    return request({
      url: `${baseUrl}/member/sale/getSaleDeliverInfo`,
      method: "GET",
      data
    });
  },

  // // 配送单详情
  // deliveryDetail: data => {
  //   return request({ url: baseUrl + "/member/deliver/get", method: "GET", data: data });
  // },
  // 配送单详情
  deliveryDetail: (data) => {
    return request({
      url: `${baseUrl}/logistics/deliver/get`,
      method: "GET",
      data
    });
  },

  // // 查看签收信息
  // getSign: data => {
  //   return request({ url: baseUrl + "/member/deliver/getSign", method: "GET", data: data });
  // },
  // 查看签收信息
  getSign: (data) => {
    return request({
      url: `${baseUrl}/logistics/deliver/getSignInfo`,
      method: "GET",
      data
    });
  },
  // // 签收确认收货
  // buyerSignSale: data => {
  //   return request({ url: baseUrl + "/member/deliver/buyerSignSale", method: "GET", data: data });
  // },
  // 签收确认收货
  buyerSignSale: (data) => {
    return request({
      url: `${baseUrl}/logistics/deliver/confirmSign`,
      method: "GET",
      data
    });
  },
  // 上传订单合同
  uploadContract: (data) => {
    return filePost({
      url: `${apiUrl}/member/sale/uploadContractUrl`,
      filePath: data
    });
  }, // 上传订单合同
  printSale: (data) => {
    return request({
      url: `${baseUrl}/sa/sale/printSaleWx`,
      method: "GET",
      data
    });
  }, // 获取pdf URL

  // 上传支付凭证
  uploadProof: (data) => {
    return filePost({
      url: `${apiUrl}/member/sale/uploadPayFile`,
      filePath: data.filePath,
      data: data.formData
    });
  },
  // 线下支付 银行转账
  payUnderLine: (data) => {
    return request({
      url: `${baseUrl}/orderPay/addOrderPay`,
      method: "POST",
      data
    });
  },
  // 账期支付
  creditPay: (data) => {
    return request({
      url: `${baseUrl}/member/sale/confirmCreditPay`,
      method: "POST",
      data
    });
  },
  // 保存订单合同
  submitContract: (data) => {
    return request({
      url: `${baseUrl}/member/sale/saveContract`,
      method: "POST",
      data
    });
  },
  // 上传购买证明
  upLoadNewFile: (data) => {
    return filePost({
      url: `${apiUrl}/member/sale/uploadFile`,
      filePath: data.filePath,
      data: data.formData
    });
  },
  saveSaleQual: (data) => {
    return request({
      url: `${baseUrl}/orderQual/createQual`,
      method: "POST",
      data
    });
  },
  editOperator: (data) => {
    return request({
      url: `${baseUrl}/orderQual/updateQual`,
      method: "POST",
      data
    });
  },
  // 经办人列表
  operatorList: (data) => {
    return request({
      url: `${baseUrl}/sa/saleQual/listAll`,
      method: "GET",
      data
    });
  },

  // 收藏列表
  favouriteList: (data) => {
    return request({
      url: `${baseUrl}/member/memberFavourite/page`,
      method: "GET",
      data
    });
  },
  // 取消收藏
  favouriteDelete: (data) => {
    return request({
      url: `${baseUrl}/member/memberFavourite/delete`,
      method: "POST",
      data
    });
  },
  // 添加发票
  addBill: (data) => {
    return request({
      url: `${baseUrl}/member/invoiceApply/add`,
      method: "POST",
      data
    });
  },
  // 发票修改
  editBill: (data) => {
    return request({
      url: `${baseUrl}/cp/companyInvoice/edit`,
      method: "POST",
      data
    });
  },
  // 发票详情
  getBill: (data) => {
    return request({
      url: `${baseUrl}/member/invoiceApply/get`,
      method: "GET",
      data
    });
  },

  // 订单
  // 订单列表
  orderList: (data) => {
    return request({ url: `${baseUrl}/sale/page`, method: "GET", data });
  },
  // 订单详情
  orderDetail: (data) => {
    return request({ url: `${baseUrl}/order/get`, method: "GET", data });
  },
  // 支付方式
  getPayTypeAndChannelInfo: (data) => {
    return request({
      url: `${baseUrl}/member/salePay/getPayTypeAndChannelInfo`,
      method: "GET",
      data
    });
  },
  // 取消订单
  cancelOrder: (data) => {
    return request({
      url: `${baseUrl}/order/repealSale`,
      method: "POST",
      data
    });
  },
  // 订单数查询 自营
  orderNums: (data) => {
    return request({
      url: `${baseUrl}/sale/listCount`,
      method: "GET",
      data
    });
  },
  // 第三方订单 自营
  orderNums1: (data) => {
    return request({
      url: `${baseUrl}/member/sale/listThirdCount`,
      method: "GET",
      data
    });
  },
  // 订单剩余支付时间
  remainTime: (data) => {
    return request({
      url: `${baseUrl}/sa/sale/salePayRemainTime`,
      method: "GET",
      data
    });
  },

  // 品牌分页
  brandList: (data) => {
    return request({
      url: `${baseUrl}/gd/brand/page`,
      method: "GET",
      data
    });
  },

  // 积分
  pointInfo: (data) => {
    return request({
      url: `${baseUrl}/member/point/page`,
      method: "GET",
      data
    });
  },

  /** *************************** 采购、报价 **************************** */
  // 发布采购
  pushProcureMent: (data) => {
    return request({
      url: `${baseUrl}/sa/procure/add`,
      method: "POST",
      data
    });
  },
  // 发布采购
  pushProcureMent: (data) => {
    return request({
      url: `${baseUrl}/sa/procure/add`,
      method: "POST",
      data
    });
  },
  // 发布采购
  pushProcureMentBatch: (data) => {
    return request({
      url: `${baseUrl}/sa/procure/batchAdd`,
      method: "POST",
      data
    });
  },

  // 发布报价
  pushQuotation: (data) => {
    return request({
      url: `${baseUrl}/sa/quotation/add`,
      method: "POST",
      data
    });
  },
  // 采购列表
  procureMentList: (data) => {
    return request({
      url: `${baseUrl}/memberProcure/procurePage`,
      method: "GET",
      data
    });
  },
  // 报价列表
  quotationMentList: (data) => {
    return request({
      url: `${baseUrl}/memberProcure/quotationPage`,
      method: "GET",
      data
    });
  },
  // 采购详情
  procureGet: (data) => {
    return request({
      url: `${baseUrl}/sa/procure/get`,
      method: "GET",
      data
    });
  },
  // 查看报价
  getQuotationPage: (data) => {
    return request({
      url: `${baseUrl}/sa/quotation/page`,
      method: "GET",
      data
    });
  },
  // 获取报价详情
  getQuotation: (data) => {
    return request({
      url: `${baseUrl}/sa/quotation/get`,
      method: "GET",
      data
    });
  },
  // 求购分页列表
  procurePage: (data) => {
    return request({
      url: `${baseUrl}/sa/procure/page`,
      method: "GET",
      data
    });
  },

  /** ************************* 子账号 ********************************* */
  // 子账号列表
  memberList: (data) => {
    return request({
      url: `${baseUrl}/member/getMemberApplyPage`,
      method: "GET",
      data
    });
  },
  // 会员子账号提交绑定客户申请
  subApplyMember: (data) => {
    return request({
      url: `${baseUrl}/member/subApply`,
      method: "GET",
      data
    });
  },
  // 会员子账号提交绑定客户申请-审批
  subApplySetMember: (data) => {
    return request({
      url: `${baseUrl}/member/subApplySet`,
      method: "POST",
      data
    });
  },

  // 可移交企业管理员的列表
  getMemberApply: (data) => {
    return request({
      url: `${baseUrl}/member/getMemberApply`,
      method: "GET",
      data
    });
  },

  // 移交企业管理员
  changeCompanyAdmin: (data) => {
    return request({
      url: `${baseUrl}/member/adminApply/changeCompanyAdmin`,
      method: "POST",
      data
    });
  },

  // 删除成员
  removeCompanyMember: (data) => {
    return request({
      url: `${baseUrl}/member/adminApply/removeCompanyMember`,
      method: "POST",
      data
    });
  },

  // 保存成员信息
  saveMemberInfo: (data) => {
    return request({
      url: `${baseUrl}/member/saveMemberInfo`,
      method: "POST",
      data
    });
  },

  // 获取业务员分享的订单
  getOrderDetail: (data) => {
    return request({
      url: `${baseUrl}/ct/sale/get`,
      method: "GET",
      data
    });
  },

  /** ************************* 电子签约 ********************************* */
  esignOpenSendVerifyCode: (data) => {
    return request({
      url: `${baseUrl}/member/eSign/sendSms`,
      method: "POST",
      data
    }); // 开通发送验证码
  },
  esignOpenSave: (data) => {
    return request({
      url: `${baseUrl}/member/eSign/openESign`,
      method: "POST",
      data
    }); // 开通保存
  },
  esignAdd: (data) => {
    return request({
      url: `${baseUrl}/member/eSign/createFlow`,
      method: "POST",
      data
    }); // 创建签署流程
  },

  checkLicence3keys: (data) => {
    return request({
      url: `${baseUrl}/customer/licence/checkLicence3keys`,
      method: "POST",
      data
    }); // 企业三要素比对
  },
  checkPerson3kes: (data) => {
    return request({
      url: `${baseUrl}/customer/licence/checkPerson3kes`,
      method: "POST",
      data
    }); // 个人三要素比对
  },

  /** *************************************************** 报价单 **************************************************************** */
  getQuotationModel: (data) => {
    return request({
      url: `${baseUrl}/sa/shareSellerQuotation/getQuotationModel`,
      method: "GET",
      data
    }); // 报价单详情
  },

  // 发票上传
  uploadFileF: (data) => {
    return filePost({
      url: `${apiUrl}/member/customerFile/uploadInvoiceAccessory`,
      filePath: data.filePath,
      data: data.formData
    });
  },

  // 公司-银行信息列表
  companyAccount: (data) => {
    return request({
      url: `${baseUrl}/sys/bank/list`,
      method: "GET",
      data
    });
  },
  // 银行支行-分页列表
  bankBranch: (data) => {
    return request({
      url: `${baseUrl}/sys/bankBranch/list`,
      method: "GET",
      data
    });
  },
  /** ****************************************************** 售后退款 ********************************************************* */
  refundList: (data) => {
    return request({
      url: `${baseUrl}/sa/saleRefund/refundList`,
      method: "GET",
      data
    });
  },
  // 根据销售订单id查询全部退款单
  saleRefund: (data) => {
    return request({
      url: `${baseUrl}/sa/saleRefund/findRefundListBySaleId`,
      method: "GET",
      data
    });
  },
  // 上传退款附件
  uploadRefundUrl: (data) => {
    return filePost({
      url: `${apiUrl}/sa/saleRefund/uploadRefundUrl`,
      filePath: data.filePath
    });
  },
  // 退款退货申请
  refundApply: (data) => {
    return request({
      url: `${baseUrl}/sa/saleRefund/refundApply`,
      method: "POST",
      data
    });
  },
  // 补充退款资料（退款原因，退款附件）
  complementRefundInfo: (data) => {
    return request({
      url: `${baseUrl}/sa/saleRefund/complementRefundInfo`,
      method: "POST",
      data
    });
  },

  // 根据退款单id查询退款订单详情
  getRefundAndDetails: (data) => {
    return request({
      url: `${baseUrl}/sa/saleRefund/getRefundAndDetails`,
      method: "GET",
      data
    });
  },
  // 根据订单详情id获取最新退款单
  findLastRefundBySaleDetailId: (data) => {
    return request({
      url: `${baseUrl}/sa/saleRefund/findLastRefundBySaleDetailId`,
      method: "GET",
      data
    });
  },
  // 根据销售订单id查询全部退款单
  findRefundListBySaleId: (data) => {
    return request({
      url: `${baseUrl}/sa/saleRefund/findRefundListBySaleId`,
      method: "GET",
      data
    });
  },

  /** ****************************** 支付记录 ******************************** */
  // 支付列表
  salePayList: (data) => {
    return request({
      url: `${baseUrl}/orderPay/pagePayRecord`,
      method: "GET",
      data
    });
  },
  // 支付记录凭证修改
  salePaySaveV2: (data) => {
    return request({
      url: `${baseUrl}/orderPay/saveOrderPay`,
      method: "POST",
      data
    });
  },
  // 支付凭证详情
  salePayGetV2: (data) => {
    return request({
      url: `${baseUrl}/orderPay/getPayRecordDetails`,
      method: "GET",
      data
    });
  },
  // 获取开票信息  (订单到开票页)
  getBySaleNo: (data) => {
    return request({
      url: `${baseUrl}/invoiceWait/getDeliverInvoiceWaitBySaleNo`,
      method: "GET",
      data
    });
  },
  // 获取开票信息  (申请成功详情)
  getBySaleNoV2: (data) => {
    return request({
      url: `${baseUrl}/invoiceWait/getInvoiceWaitBySaleNo`,
      method: "GET",
      data
    });
  },
  // 提交申请开票
  applyInvoice: (data) => {
    return request({
      url: `${baseUrl}/invoiceWait/applyInvoice`,
      method: "POST",
      data
    });
  },
  // 查看发票申请详情
  checkInvoice: (data) => {
    return request({
      url: `${baseUrl}/invoiceWait/get`,
      method: "GET",
      data
    });
  },
  // 获取开票信息-应收单  (订单到开票页)
  getReceiveBySaleNo: (data) => {
    return request({
      url: `${baseUrl}/invoiceWait/getReceiveInvoiceWaitBySaleNo`,
      method: "GET",
      data
    });
  },
  // // 获取开票信息-应收单  (申请成功详情)与之前接一样
  // getReceiveBySaleNoV2: (data) => {
  //     return request({url: baseUrl + '/invoiceWait/getInvoiceWaitBySaleNo',method: 'GET', data: data})
  // },
  // 提交申请开票-应收单
  applyReceiveInvoice: (data) => {
    return request({
      url: `${baseUrl}/invoiceWait/applyReceiveInvoice`,
      method: "POST",
      data
    });
  },

  /** ************************* 有料二级频道 ********************************* */
  // 有料指数_列表
  getExponentList: (data) => {
    return request({
      url: `${baseUrl}/ct/goodsQuote/list`,
      method: "GET",
      data
    });
  },
  // 有料指数__日期
  getExponentDateList: (data) => {
    return request({
      url: `${baseUrl}/ct/goodsQuote/getDateList`,
      method: "GET",
      data
    });
  },
  /** ************************************ 积分兑换 ************************************** */

  pointGoods: (data) => {
    return request({
      url: `${baseUrl}/member/pointGoods/page`,
      method: "GET",
      data
    });
  },
  // 获取热销榜
  getHotSaleList: (data) => {
    return request({
      url: `${baseUrl}/member/pointGoods/getHotSaleList`,
      method: "GET",
      data
    });
  },
  // 兑换记录
  pointGoodsSale: (data) => {
    return request({
      url: `${baseUrl}/member/pointGoodsSale/page`,
      method: "GET",
      data
    });
  },
  // 积分商品类目
  categoryList: (data) => {
    return request({
      url: `${baseUrl}/member/pointGoodsCategory/list`,
      method: "GET",
      data
    });
  },
  // 查看是否能提交申请企业管理员
  pageCheck: (data) => {
    return request({
      url: `${baseUrl}/member/adminApply/pageCheck`,
      method: "POST",
      data
    });
  },
  // 提交申请企业管理员
  adminApplyCreate: (data) => {
    return request({
      url: `${baseUrl}/member/adminApply/create`,
      method: "POST",
      data
    });
  },

  // 会员地址列表
  memberAddressList: (data) => {
    return request({
      url: `${baseUrl}/member/memberAddress/list`,
      method: "GET",
      data
    });
  },
  // 会员地址列表
  memberAddressGet: (data) => {
    return request({
      url: `${baseUrl}/member/memberAddress/get`,
      method: "GET",
      data
    });
  },
  // 会员地址列表-删除
  memberAddressDel: (data) => {
    return request({
      url: `${baseUrl}/member/memberAddress/delete`,
      method: "POST",
      data
    });
  },
  // 会员地址列表-新建、编辑
  memberAddressSave: (data) => {
    return request({
      url: `${baseUrl}/member/memberAddress/create`,
      method: "POST",
      data
    });
  },
  // 会员地址设置默认
  memberAddressDefault: (data) => {
    return request({
      url: `${baseUrl}/member/memberAddress/modifyDefault`,
      method: "POST",
      data
    });
  },
  // 积分兑换
  pointGoodsGet: (data) => {
    return request({
      url: `${baseUrl}/member/pointGoods/get`,
      method: "GET",
      data
    });
  },
  // 积分商品下单
  pointPay: (data) => {
    return request({
      url: `${baseUrl}/member/pointGoodsSale/create`,
      method: "POST",
      data
    });
  },
  // 积分商品下单
  pointD: (data) => {
    return request({
      url: `${baseUrl}/member/point/get`,
      method: "GET",
      data
    });
  },
  // 积分商品下单
  pointGoodsSaleDetail: (data) => {
    return request({
      url: `${baseUrl}/member/pointGoodsSale/get`,
      method: "GET",
      data
    });
  },
  // 积分商品下单
  taskList: (data) => {
    return request({
      url: `${baseUrl}/member/point/taskList`,
      method: "GET",
      data
    });
  },
  // 客户是否可以下单
  checkBeforeCreateSale: (data) => {
    return request({
      url: `${baseUrl}/member/sale/checkBeforeCreateSale`,
      method: "GET",
      data
    });
  },

  /** ************************************ 小雨点借贷 ************************************** */
  // 判断小雨贷展示
  checkXydShow: (data) => {
    return request({
      url: `${baseUrl}/member/customerCredit/xydShow`,
      method: "GET",
      data
    });
  },
  // 申请授信
  XydAuthCredit: (data) => {
    return request({
      url: `${baseUrl}/member/customerCredit/authCredit`,
      method: "POST",
      data
    });
  },
  // 获取授信信息
  XydGetCustomerCredit: (data) => {
    return request({
      url: `${baseUrl}/member/customerCredit/getCustomerCredit`,
      method: "GET",
      data
    });
  },
  // 客户额度详情分页
  getQuotaDetailPage: (data) => {
    return request({
      url: `${baseUrl}/member/customerCredit/quotaDetailPage`,
      method: "GET",
      data
    });
  },
  // 小雨点支付
  xydPay: (data) => {
    return request({
      url: `${baseUrl}/orderPay/xydPay`,
      method: "POST",
      data
    });
  },
  // 小雨点支付
  getXydPayStatusBySaleId: (data) => {
    return request({
      url: `${baseUrl}/member/salePay/getXydPayStatusBySaleId`,
      method: "GET",
      data
    });
  },

  // 金融。新链贷
  getFinancePayStatusBySaleId: (data) => {
    return request({
      url: `${baseUrl}/member/salePay/getFinancePayStatusBySaleId`,
      method: "GET",
      data
    });
  },
  // 校验是否允许邀请子账号接口
  subApplyCheck: (data) => {
    return request({
      url: `${baseUrl}/member/subApplyCheck`,
      method: "GET",
      data
    });
  },

  // ----------------- 通知 ----------------
  // 小程序首页展示“通知”判断
  isNotification: (data) => {
    return request({
      url: `${baseUrl}/member/isNotification`,
      method: "GET",
      data
    });
  },
  // 获取通知消息
  getNotification: (data) => {
    return request({
      url: `${baseUrl}/member/getNotification`,
      method: "GET",
      data
    });
  },
  // 金融支付
  financePay: (data) => {
    return request({
      url: `${baseUrl}/orderPay/financePay`,
      method: "POST",
      data
    });
  },
  // ----------- 名片 ---------
  // 获取名片信息
  getBusinessCard: (data) => {
    return request({
      url: `${baseUrl}/member/businessCard/get`,
      method: "POST",
      data
    });
  },
  // 判断当天是否授权
  checkIsAuthorize: (data) => {
    return request({
      url: `${baseUrl}/member/businessCard/checkIsAuthorize`,
      method: "GET",
      data
    });
  },

  // 修改手机号-发送验证码
  sendChangeMobileSmsTwo: (data) => {
    return request({
      url: `${baseUrl}/member/sendChangeMobileSmsTwo`,
      method: "POST",
      data
    });
  },
  // 修改手机号-验证手机号
  changeMobileSmsTwoValid: (data) => {
    return request({
      url: `${baseUrl}/member/changeMobileSmsTwoValid`,
      method: "POST",
      data
    });
  },

  /* 合法使用说明 */
  // 获取合法使用说明列表
  getCustomerCompanyQualList: (data) => {
    return request({
      url: `${baseUrl}/member/customerCompanyQual/findList`,
      method: "GET",
      data
    });
  },
  // 获取合法使用说明详情
  getCustomerCompanyQualById: (data) => {
    return request({
      url: `${baseUrl}/member/customerCompanyQual/get`,
      method: "GET",
      data
    });
  },
  // 保存合法使用说明详情
  saveCustomerCompanyQual: (data) => {
    return request({
      url: `${baseUrl}/member/customerCompanyQual/save`,
      method: "POST",
      data
    });
  },
  // 获取佳信系统会话信息
  getJiaxinSessionInfo: (data) => {
    return request({
      url: `${baseUrl}/mb/jiaxin/getJiaxinSessionInfo`,
      method: "GET",
      data
    });
  },
  // 获取佳信系统会话信息
  getJiaxinSessionCardInfo: (data) => {
    return request({
      url: `${baseUrl}/mb/jiaxin/getJiaxinSessionCardInfo`,
      method: "GET",
      data
    });
  },

  // 微信授权获取手机号
  weAppRegister: (data) => {
    return request({
      url: `${baseUrl}/member/weAppRegister`,
      method: "POST",
      data
    });
  },

  // 邀请有礼 - 邀请记录
  inviteRecord: (data) => {
    return request({
      url: `${baseUrl}/member/inviteDetail/findList`,
      method: "GET",
      data
    });
  },

  // 会员认证状态
  getMemberInfo: (data) => {
    return request({
      url: `${baseUrl}/member/getMemberInfo`,
      method: "GET",
      data
    });
  }
};
